<template>
	<view>
		<view class="clue_bg">
			<uv-navbar title=" " :placeholder="true" bgColor="rgba(0,0,0,0)" :autoBack="true"></uv-navbar>
			<view class="clue_user">
				<image class="ph" src="../../static/ico_head2.png" mode="aspectFill"></image>
				<view class="item">
					<view class="name">
						元新建
					</view>
					<view class="info">
						2岁8个月·跟进中·意向级别高
					</view>
				</view>
			</view>
		</view>
		
		<view class="follow_tab">
			<uv-tabs
				:list="list" 
				lineWidth="120rpx" 
				lineColor="rgba(255, 133, 53, 1)" 
				:scrollable="false"
				:activeStyle="{
					color: 'rgba(255, 133, 53, 1)',
					fontSize: '30rpx'
				}"
				:inactiveStyle="{
					color: 'rgba(61, 61, 61, 1)',
					fontSize: '30rpx'
				}" 
				itemStyle="height: 80rpx;"
				@click="clickFollowTab"
				>
			</uv-tabs>
		</view>
		
		<view class="add_record" @click="gotoAdd">
			<image class="ico" src="../../static/ico_8.png" mode="widthFix"></image>
			<view class="name">
				添加跟进记录
			</view>
			<uv-icon name="arrow-right" color="#BEBEBE" size="28rpx"></uv-icon>
		</view>
		
		<view class="genjin">
			<view class="title">
				跟进计划
			</view>
			<view class="genjin_info">
				<view class="time">
					2046.05.26 07:21
				</view>
				<view class="name">
					<image class="ph" src="../../static/ico_9.png" mode="widthFix"></image>
					橘子老师
				</view>
				<view class="info">
					22确认意向拖班
				</view>
				<view class="state red">
					已逾期
				</view>
			</view>
		</view>
		
		<view class="genjin">
			<view class="title">
				跟进计划
			</view>
			<view class="genjin_list">
				<view class="item">
					<image class="ico" src="../../static/ico_10.png" mode="widthFix"></image>
					<view class="time">
						2046.05.26 07:21
					</view>
					<view class="name">
						<image class="ph" src="../../static/ico_9.png" mode="widthFix"></image>
						橘子老师
						<view class="btn">
							确认意向
						</view>
					</view>
					<view class="info">
						22确认意向拖班
					</view>
					<view class="state blue">
						已完成
					</view>
				</view>
				<view class="item">
					<image class="ico" src="../../static/ico_10.png" mode="widthFix"></image>
					<view class="time">
						2046.05.26 07:21
					</view>
					<view class="name">
						<image class="ph" src="../../static/ico_9.png" mode="widthFix"></image>
						橘子老师
						<view class="btn">
							确认意向
						</view>
					</view>
					<view class="info">
						22确认意向拖班
					</view>
					<view class="state blue">
						已完成
					</view>
				</view>
			</view>
		</view>
		
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [
					{
						name: '报读课程'
					}, 
					{
						name: '跟进管理'
					}
				],
				tabIndex:0
			}
		},
		onLoad() {

		},
		methods: {
			gotoAdd(){
				uni.navigateTo({
					url: '/pages/addRecord/addRecord'
				});
			},
			clickFollowTab(e){
				console.log(e)
				this.tabIndex = e.index
			}
		}
	}
</script>

<style lang="scss" scoped>
.red{
	color: #FA5151;
}
.org{
	color: #FF8535;
}
.blue{
	color: #3378F5;
}
.genjin_list{
	background: #fff;
	position: relative;
	&::after{
		content: '';
		position: absolute;
		left:30rpx;
		top:0;
		bottom: 0;
		border-left:2px solid rgba(255, 133, 53, 1);
	}
	.item{
		padding:30rpx 60rpx;
		position: relative;
		.ico{
			position: absolute;
			left:20rpx;
			top:32rpx;
			width: 24rpx;
			height: 24rpx;
			z-index: 9;
		}
		.state{
			position: absolute;
			right: 32rpx;
			top:50%;
			font-size: 24rpx;
			line-height: 34rpx;
			margin-top: -17rpx;
		}
		.time{
			color: rgba(61, 61, 61, 0.5);
			line-height: 34rpx;
			font-size: 24rpx;
		}
		.name{
			display: flex;
			align-items: center;
			font-size: 24rpx;
			font-weight: 500;
			color: rgba(61, 61, 61, 0.5);
			padding:15rpx 0;
			height: 42rpx;
			image{
				flex-shrink: 0;
				width: 22rpx;
				margin-right: 10rpx;
			}
			.btn{
				width: 100rpx;
				height: 40rpx;
				border-radius: 4rpx;
				box-sizing: border-box;
				border: 1px solid rgba(230, 229, 231, 0.8);
				font-size: 20rpx;
				text-align: center;
				line-height: 40rpx;
				margin-left: 40rpx;
				color: #3D3D3D;
			}
		}
		.info{
			font-size: 24rpx;
			line-height: 34rpx;
			color: #3D3D3D;
		}
	}
}
.genjin{
	padding:0 40rpx;
	
	.genjin_info{
		background: #fff;
		padding:20rpx 30rpx;
		position: relative;
		.state{
			position: absolute;
			right: 32rpx;
			top:50%;
			font-size: 24rpx;
			line-height: 34rpx;
			margin-top: -17rpx;
		}
		.time{
			color: #EA0000;
			line-height: 34rpx;
			font-size: 24rpx;
		}
		.name{
			display: flex;
			align-items: center;
			font-size: 24rpx;
			font-weight: 500;
			color: rgba(61, 61, 61, 0.5);
			padding:15rpx 0;
			image{
				flex-shrink: 0;
				width: 22rpx;
				margin-right: 10rpx;
			}
		}
		.info{
			font-size: 24rpx;
			line-height: 34rpx;
			color: #3D3D3D;
		}
	}
	.title{
		font-size: 28rpx;
		line-height: 42rpx;
		padding:30rpx 0 20rpx;
	}
}
.add_record{
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding:0 40rpx;
	height: 80rpx;
	background: #fff;
	.ico{
		flex-shrink: 0;
		width: 30rpx;
		height: 30rpx;
		margin-right: 18rpx;
	}
	.name{
		font-size: 30rpx;
		color: #3D3D3D;
		width: 100%;
	}
}
.follow_tab{
	background: #fff;
	border-bottom: 2rpx solid rgba(230, 229, 231, 0.8);
	padding:0 100rpx;
	margin-top: 40rpx;
}
.clue_bg{
	border-radius: 0px 0px 60rpx 60rpx;
	background: linear-gradient(124deg, #FFBD4D 0%, #FF903C 100%);
}
.clue_user{
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding:60rpx 60rpx 140rpx;
	.ph{
		flex-shrink: 0;
		display: block;
		width: 140rpx;
		height: 140rpx;
		border-radius: 50%;
		margin-right: 30rpx;
	}
	.item{
		width: 100%;
		color:#fff;
		.name{
			font-size: 40rpx;
			font-weight: 500;
			line-height: 56rpx;
		}
		.info{
			margin-top: 25rpx;
			font-size: 24rpx;
			font-weight: 500;
			line-height: 34rpx;
		}
	}
}
</style>
